package com.abc.springboot.mapper;

import com.abc.springboot.pojo.MyList;
import com.abc.springboot.pojo.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StudentMapper {
    //查找全部学生
    public List<Student> selectStudent();
    //通过id查找学生
    public Student selectStudentById(int id);
    //通过姓名查找学生
    public Student selectStudentByName(String name);
    //通过电话号查找学生
    public Student selectStudentByPhonenumber(long phonenumber);
    //增加一个学生
    public void insertAStudent(Student student);
    //增加一组学生
    public void insertStudents(List<Student> list);
    //查询一组学生
    public List<Student> selectStudentsById(int[] id);
}
